import Vue from 'vue'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'

import router from '@/router'
import store from '@/store'
import app from '@/app'

import * as filters from './filters'                //过滤器

import '../static/iconfont/iconfont.css'
import '@/styles/fonts.scss'

import './permission'

// 注册全局插件
Vue.use(ElementUI)

// 注册全局过滤器
Object.keys(filters).forEach(key => {
    Vue.filter(key, filters[key])
})

Vue.config.productionTip = false

new Vue({
    el: '#app',
    router,
    store,
    template: '<app/>',
    components: {app}
})